//
//  HMCommon.swift
//  Weibo
//
//  Created by Apple on 2017/7/12.
//  Copyright © 2017年 KY. All rights reserved.
//

import UIKit

//  切换根视图控制器
let SwitchRootVCNotificationName = "SwitchRootVCNotificationName"
//  表情按钮点击的通知名
let ClickEmoticonButonNotificationName = "ClickEmoticonButonNotificationName"
//  首页Cell的重用标记
let HomeCellIdentifier = "HomeCellIdentifier"
//  首页配图cell的重用标记
let HomePictureCellIdentifier = "HomePictureCellIdentifier"
//  发微博配图cell的重用标记
let ComposePictureCellIdentifier = "ComposePictureCellIdentifier"
//  表情视图cell的重用标记
let EmoticonViewCellIdentifier = "EmoticonViewCellIdentifier"

//  首页子控件间距
let HomeCellMargin: CGFloat = 10
//  当前屏幕的宽度
let ScreenWidth = UIScreen.main.bounds.size.width
//  当前屏幕的高度
let ScreenHeight = UIScreen.main.bounds.size.height
//  表情bundle对象
let emoticonBundle = HMEmoticonTools.sharedTools.emoticonBundle

//  随机颜色
func RandomColor() -> UIColor {
    let red = CGFloat(arc4random_uniform(256)) / 255.0
    let green = CGFloat(arc4random_uniform(256)) / 255.0
    let blue = CGFloat(arc4random_uniform(256)) / 255.0
    return UIColor(red: red, green: green, blue: blue, alpha: 1)
}
